package com.doctor.ui.consulting;

import java.util.ArrayList;
import java.util.List;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.GridView;

import com.doctor.adapter.WXGroupAdapter;
import com.doctor.ui.BaseFragment;
import com.doctor.ui.R;

/**
 * 微信群
 */
public class WXGroupFrag extends BaseFragment{
	
	
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		View view = inflater.inflate(R.layout.wx_group_frag, container, false);
		initiaView(view);
		return view;
	}
	

	protected void initiaView(View view) {
		GridView gridView = (GridView) view.findViewById(R.id.grid_view);
		//测试
		List<String> test = new ArrayList<>();
		test.add("测试一联盟");
		test.add("测试二联盟");
		test.add("测试三联盟");
		test.add("测试四联盟");
		test.add("测试五联盟");
		test.add("测试六联盟");
		test.add("测试七联盟");
		test.add("测试八联盟");
		test.add("测试九联盟");
		test.add("测试十联盟");
		WXGroupAdapter adapter = new WXGroupAdapter(getActivity(), test);
		gridView.setAdapter(adapter);
	}
	
	
	
	
	
}
